package main

import "fmt"

func main() {
	var s []int
	s = append(s, 1, 2, 3)
	fmt.Println("元素个数：", len(s))
	fmt.Println("容量：", cap(s))
	s = append(s, 1, 2, 3)
	fmt.Println("元素个数：", len(s))
	fmt.Println("容量：", cap(s))
	s = append(s, 1, 2, 3)
	fmt.Println("元素个数：", len(s))
	fmt.Println("容量：", cap(s))
}
